-- GENERATED SPELL FOR [Zevrax] --


function spell0_17494(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(21068,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17494', 26000, 1)
end

function spell1_17494(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(17227,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17494', 566, 1)
end

function spell2_17494(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17494', 17000, 1)
end

function spell3_17494(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17494', 3000, 1)
end

function Sorts_17494(pUnit, Event)
local choix_sorts_17494 = math.random(0, 3)
if choix_sorts_17494 == 0 then
pUnit:RegisterEvent('spell0_17494', 1, 1)
end
if choix_sorts_17494 == 1 then
pUnit:RegisterEvent('spell1_17494', 1, 1)
end
if choix_sorts_17494 == 2 then
pUnit:RegisterEvent('spell2_17494', 1, 1)
end
if choix_sorts_17494 == 3 then
pUnit:RegisterEvent('spell3_17494', 1, 1)
end
end

function mob17494_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17494', math.random(1500, 3000), 1)
end

function mob17494_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17494_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17494_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17494, 1, 'mob17494_Action')
RegisterUnitEvent(17494, 2, 'mob17494_Leave')
RegisterUnitEvent(17494, 3, 'mob17494_Kill')
RegisterUnitEvent(17494, 4, 'mob17494_Die')
